using System;

namespace Microsoft.SqlServer.Management.SqlManagerUI
{
	public class ProviderEntity
	{
		private string _filePath = string.Empty;

		private string _errorMessage;

		private string _name = string.Empty;

		private string _webServiceAddress = string.Empty;

		private string _username = string.Empty;

		private string _password = string.Empty;

		private bool _savePassword;

		private DatabaseCollection _databases = new DatabaseCollection();

		public string Name
		{
			get
			{
				return this._name;
			}
			set
			{
				this._name = value;
			}
		}

		public string WebServiceAddress
		{
			get
			{
				return this._webServiceAddress;
			}
			set
			{
				this._webServiceAddress = value;
			}
		}

		public string UserName
		{
			get
			{
				return this._username;
			}
			set
			{
				this._username = value;
			}
		}

		public string Password
		{
			get
			{
				return this._password;
			}
			set
			{
				this._password = value;
			}
		}

		public DatabaseCollection Databases
		{
			get
			{
				return this._databases;
			}
		}

		public string FilePath
		{
			get
			{
				return this._filePath;
			}
			set
			{
				this._filePath = value;
			}
		}

		public string ErrorMessage
		{
			get
			{
				return this._errorMessage;
			}
			set
			{
				this._errorMessage = value;
			}
		}

		public bool WasLoadedWithoutErrors
		{
			get
			{
				return this._errorMessage == null;
			}
		}

		public bool SavePassword
		{
			get
			{
				return this._savePassword;
			}
			set
			{
				this._savePassword = value;
			}
		}

		public ProviderEntity()
		{
		}

		public ProviderEntity(string providerName, string filePath)
		{
			this._name = providerName;
			this._filePath = filePath;
		}
	}
}
